import { herinRequist } from "../http.js";
// 访客审批
const Visitor = {
	getVisitorState(type) {
		return herinRequist({ url: '/app/visitor-state', method: 'GET', data: { type } });
	},
	getVisitorChart(data) {
		return herinRequist({ url: '/app/visitor-chart', method: 'GET',  data });
	},
	getVisitorList(data) {
		return herinRequist({ url: '/app/visitor-list-new', method: 'GET', data });
	},
	getVisitorDetail(id) {
		return herinRequist({ url: '/app/visitor-detail-new', method: 'GET', data: { id } });
	},
	visitorAudit(data) {
		return herinRequist({ url: '/app/visitor-audit-new', method: 'POST', data });
	},
	getVisitorReason() {
		return herinRequist({ url: '/app/visitor-reason-list', method: 'GET'});
	},
	getPerformanceTrend() {
		return herinRequist({ url: '/app/performance-trend', method: 'GET'});
	}
} 

export default Visitor;